#URL = "http://origin.releases.qt-project.org/jom/jom_%(VERSION)s.zip"
URL = "http://download.qt-project.org/official_releases/jom/jom_%(VERSION)s.zip"
DEFAULT_VERSION = "1_0_12"
VERSIONS = ["0_9_03", "1_0_03", "1_0_11", "1_0_12", "1_0_13"]

__doc__ = """ Windows Only, used by qt4os builder """

from source.builders import DownloadAndCopyBuilder
import os

class jombuilder( DownloadAndCopyBuilder ):

  def addexetopath(self):
    os.environ['PATH'] =  os.pathsep.join([self.directories.enviro + "\\jom" + self.version,
                                           os.environ['PATH']])
  def jomexecutable(self):
    return self.directories.enviro + "\\jom_" + self.version + "\\jom.exe "+"-j "+str(self.machine.cores)
    
def decider( machine, dirs ):
  return { "Linux" : None, "Windows" : jombuilder }[machine.platform]

BUILDER = decider



